package com.zhou.common.mybatis.template.shiro.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zhou.common.lib.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * <p>
 * 角色信息表
 * </p>
 *
 * @author zxf
 * @since 2023-02-27
 */
@Getter
@Setter
@TableName("sys_role")
@ApiModel(value = "SysRole对象", description = "角色信息表")
public class SysRole extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色名称", position = 2)
    private String roleName;

    @ApiModelProperty(value = "角色权限字符串", position = 3)
    private String roleKey;

    @ApiModelProperty(value = "显示顺序", position = 4)
    private Integer roleSort;

    @ApiModelProperty(value = "数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）", position = 5)
    private String dataScope;

    @ApiModelProperty(value = "角色状态（0正常 1停用）", position = 6)
    private String status;

    @ApiModelProperty(value = "创建者", position = 7)
    private String createBy;

    @ApiModelProperty(value = "创建时间", position = 8)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者", position = 9)
    private String updateBy;

    @ApiModelProperty(value = "更新时间", position = 10)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注", position = 11)
    private String remark;


}
